import request from "@/utils/request";

//列表接口
export function sortwork_index(params) {
  return request({
    url: "/sort_separate_work/index",
    method: "get",
    params
  });
}
//保存分工方式接口
export function sortwork_save(data) {
  return request({
    url: "/sort_separate_work/modify_type",
    method: "post",
    data: data
  });
}
//获取分拣科目 分拣员接口
export function sortwork_base(params) {
  return request({
    url: "/sort_separate_work/base",
    method: "get",
    params
  });
}

// 添加分工小组接口
export function sortgroup_add(data) {
  return request({
    url: "/sort_separate_work/add",
    method: "post",
    data: data
  });
}

// 修改分工小组接口
export function sortgroup_edit(data) {
  return request({
    url: "/sort_separate_work/edit",
    method: "post",
    data: data
  });
}

// 删除分工小组接口
export function sortgroup_del(data) {
  return request({
    url: "/sort_separate_work/delete",
    method: "post",
    data: data
  });
}
